﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BBMS.DLL.Forms.Base
{
    public partial class FrmExportBase : Form
    {
        public FrmExportBase()
        {
            InitializeComponent();
            rbtnInsertNews.Checked = true;
        }

        private void btnBrowse_Click(object sender, EventArgs e)
        {

        }

        public virtual string FilePath
        {
            get{
                return txtPath.Text.Trim();
            }
        }

        public virtual BBMS.DLL.Base.ImportMode ImportMode
        {
            get
            {
                if (rbtnDelAll.Checked) return BBMS.DLL.Base.ImportMode.ReplaceAllRecord;
                else if (rbtUpdate.Checked) return BBMS.DLL.Base.ImportMode.UpdateAndInsert;
                return BBMS.DLL.Base.ImportMode.InsertNews;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {

        }
    }
}
